import request from '@/utils/request'

// 查询appletSite列表
export function listAppletSite(query) {
  return request({
    url: '/applet/appletSite/list',
    method: 'get',
    params: query
  })
}


export function getSiteInfoPie() {
  return request({
    url: '/applet/appletSite/getSiteInfoCharPie',
    method: 'get',
  })
}

// 查询appletSite列表
export function getSiteSelectList() {
  return request({
    url: '/applet/appletSite/getSite/SelectList',
    method: 'get',
  })
}


// 查询appletSite详细
export function getAppletSite(siteId) {
  return request({
    url: '/applet/appletSite/' + siteId,
    method: 'get'
  })
}

// 新增appletSite
export function addAppletSite(data) {
  return request({
    url: '/applet/appletSite',
    method: 'post',
    data: data
  })
}

// 修改appletSite
export function updateAppletSite(data) {
  return request({
    url: '/applet/appletSite',
    method: 'put',
    data: data
  })
}

// 删除appletSite
export function delAppletSite(siteId) {
  return request({
    url: '/applet/appletSite/' + siteId,
    method: 'delete'
  })
}
